<template>
    <!-- //取样 -->
    
        <div>
            <Collapse :description-column="2" :field-list="drillRoundtripDescritionFieldList" :field-longlist="FieldListLong"  :data="data"/>
    
        </div>
    
    
    
    
    
    </template>
        
    <script setup lang='ts'>
    import _ from 'lodash';
    import Collapse from '@/components/common/collapse/Collapse.vue'
    import API from '@/network/api';
    import { useRvo } from '@/hook/useRvo';
    
    
    const drillRoundtripDescritionFieldList = reactive([
        {
            name: "category",
            label: "取样类型",
            type: "TEXT"
        },
        {
            name: "code",
            label: "取样编号",
            type: "TEXT"
        },
        {
            name: "waterType",
            label: "取水类型",
            type: "TEXTJUDGE",
            condition:'水',
            relation:'category'
        },
        {
            name: "bottomDepth",
            label: "取水深度(m)",
            type: "TEXTJUDGE",
            condition:'水',
            relation:'category'
        },
        {
            name: "topDepth",
            label: "取样顶深(m)",
            type: "TEXTJUDGE",
            condition:'土样',
            relation:'category'
        },
        {
            name: "bottomDepth",
            label: "取样底深(m)",
            type: "TEXTJUDGE",
            condition:'土样',
            relation:'category'
        },  
        {
            name: "topDepth",
            label: "取样顶深(m)",
            type: "TEXTJUDGE",
            condition:'岩样',
            relation:'category'
        },
        {
            name: "bottomDepth",
            label: "取样底深(m)",
            type: "TEXTJUDGE",
            condition:'岩样',
            relation:'category'
        },  
        {
            name: "soilType",
            label: "取土类型",
            type: "TEXTJUDGE",
            condition:'土样',
            relation:'category'
        },
        {
            name: "samplingTool",
            label: "取土工具",
            type: "TEXTJUDGE",
            condition:'土样',
            relation:'category'
        },
        {
            name: "layerName",
            label: "地层名称",
            type: "LONGTEXT"
        },
        {
            name: "description",
            label: "样品描述",
            type: "LONGTEXT"
        },
    
        {
            name: "image",
            label: "样品图片",
            type: "LONGIMAGE"
        },

    
    ])
    const FieldListLong=reactive([{
    
    }])
    const data = ref([])
    
    const props = defineProps({
        drillHoleId: {
            type:String,
            default:""
        }
    })
    
    onMounted(async () => {
        let listVo = useRvo().listRvo
        listVo.id = props.drillHoleId
        listVo.pageSize = 100;
        let res = await API.drillSample.list(listVo);
        data.value = res.data.list

        //区分长文本
       
    
    })
    
    
    </script>
        
    <style scoped lang="scss">
    
    
    
    </style>